package com.nearby.demand.adapter;

import android.view.View;
import android.view.ViewGroup;

import com.nearby.demand.R;
import com.nearby.demand.model.News;

import java.util.List;

/**
 * Created by lizhangqu on 2015/6/home_3.
 */
public class CollectAdapter extends BaseRecyclerViewAdapter<News, CollectAdapter.MyViewHolder> {

    public CollectAdapter(List<News> list) {
        super(list);
    }


    @Override
    protected void bindDataToItemView(MyViewHolder myViewHolder, News item) {


    }

    @Override //获取item类型
    public int getItemViewType(int position) {
        return getItem(position).getType();
    }


    @Override
    public MyViewHolder onCreateViewHolder(ViewGroup viewGroup, int type) {

        return new MyViewHolder(inflateItemView(viewGroup, R.layout.ui_collect_item));
    }


    public class MyViewHolder extends BaseRecyclerViewAdapter.SparseArrayViewHolder {

        public MyViewHolder(View itemView) {
            super(itemView);

        }


    }

}
